package com.xingu.xg.common.utils;

public class AssertUtils {

    public static boolean isBlank(boolean isTrue, String message) {
        if (!isTrue) {
            throw new RuntimeException(message);
        }
        return true;
    }

    public static boolean isBlank(int isZero, String message) {
        if (isZero == 0) {
            throw new RuntimeException(message);
        }
        return true;
    }

    public static <T> boolean isBlank(T o, String message) {
        if (o == null) {
            throw new RuntimeException(message);
        }
        return true;
    }
}
